package me.youline.dataServer.entity.socialActionMsg;

import java.io.Serializable;
import java.util.Date;

/**
 * 社交行为通知消息实体
 * @author linhan
 *
 */
public class SocialActionMsg implements Serializable{

	private static final long serialVersionUID = -2959049875191207343L;

	/**
	 * 操作类型
	 * @author linhan
	 *
	 */
	public static enum Action{
		REPOST,//转发操作
		PRAISE,//点赞操作
		FOLLOWING//关注操作
	}
	
	/**
	 * 消息ID
	 */
	private Long id;
	
	/**
	 * 事件发起用户ID
	 */
	private Long initiator;
	
	/**
	 * 操作目标对象ID
	 */
	private Long targetId;
	
	/**
	 * 附加数据
	 */
	private String attach;
	
	/**
	 * 操作
	 */
	private Action action;
	
	/**
	 * 创建时间
	 */
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getInitiator() {
		return initiator;
	}

	public void setInitiator(Long initiator) {
		this.initiator = initiator;
	}

	public Long getTargetId() {
		return targetId;
	}

	public void setTargetId(Long targetId) {
		this.targetId = targetId;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}

	public Action getAction() {
		return action;
	}

	public void setAction(Action action) {
		this.action = action;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
}
